const state ={
    userName:"迪迦",
    token:"sadadsadsa4as54dsa555"
}

const getters ={

}

const mutations ={
    SET_USERNAME(state,data){
        state.userName = data
    }
}

const actions ={
    changeName({commit},data){
        commit("SET_USERNAME",data)
    }
}

export default {
    //开启命名空间
    namespaced:true,
    state,
    getters,
    mutations,
    actions
}